﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LogIn.ascx.cs" Inherits="PreguntaAlExperto.Components.LogIn" %>
<div id="_loginPanel">
<script language="javascript" type="text/javascript">
    function getKey(e)
    {
        var characterCode;

        if(e && e.which)
        {
            e = e;
            characterCode = e.which;
        }
        else
        {
            e = event;
            characterCode = e.keyCode;
        }

        if(characterCode == 13)
        {
            document.getElementById(submitButton).click();
            return false;
        }
        else
            return true;
    }
</script>
    <table style="width: 100%">
        <tr>
            <td colspan="2">
                <div class="bigTitle">
                    <asp:Label ID="lblLogAsUser" runat="server" Text=""></asp:Label>
                </div>
                <div class="errorMessage">
                    <asp:Label ID="lblError" runat="server" Text=""></asp:Label></div>
                <div id="newCredentials" style="display:none">
                    <asp:Label ID="lblNewCredentials" runat="server"></asp:Label></div>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; white-space: nowrap; width: 30%">
                <asp:Label ID="lblUserName" runat="server"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                <asp:Label ID="lblPassword" runat="server"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <a href="#" onclick="ShowRecoverPanel(); return false;">
                    <asp:Label ID="lblRecover" runat="server"></asp:Label></a>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="btnAuthenticate" runat="server" Text="" OnClick="btnAuthenticate_Click" />
            </td>
        </tr>
    </table>
</div>
<div id="_recoverPanel" style="display:none;">
    <div id="_LoadingPanel" style="display:none; font-size:18px; font-weight:bolder; color:White; padding-top:35px; height:65px; width:380px; position:absolute; background-color:Gray; filter:alpha(opacity=70);opacity:0.7; border:solid 1px black; text-align:center">
        Procesando...
    </div>
    <table style="width: 100%">
        <tr>
            <td colspan="2">
                <div class="bigTitle">
                    <asp:Label ID="lblRecoverTitle" runat="server" Text=""></asp:Label>
                </div>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; white-space: nowrap; width: 30%">
                <asp:Label ID="lblEmailRecover" runat="server"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmailRecover" runat="server" Width="190px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <input type="button" runat="server" ID="btnRecover" value="Recuperar" onclick="" /> <input id="btnCancel" type="button" value="Cancelar" onclick="ShowLoginPanel();" />
            </td>
        </tr>
    </table>
</div>
